{if $type == 1}
    <div class="stat">
        <h3>
        	<a href="{vfriend_username userid=$item.ownerid viewid=$AppUI->id}">{$item.ownerid|ouser}</a>
            <span class="iTime">{$item.info.postdate|convert_date}</span>    
      	</h3>   
    </div>
    <div class="content">
        <h5><span class="prefix">Nhật ký</span> - <a href="{link_blog blogid=$item.info.blogid title=$item.info.title}">{$item.info.title}</a></h5>
        <div class="short">
            {if $item.info.image != ""}
                {image path=$item.info.image id=$item.info.blogid title=$item.info.title type=3 small=1 class="border95NB rMargin10 lFloat"}
            {/if}
            {$item.info.short}
            <div class="cstat">
                <ul>
                    <li>
                        <span class="beLike"><a href="javascript:;" onclick="javascript:like({$item.srcid},{$item.type},'{$item._id}');">Thích</a> (<span id="beh_like_{$item._id}">{$item.info.tlike|number_format:"0":",":"."}</span>)</span>
                    </li>
                    <li>
                        <span class="beCmt"><a href="{link_blog blogid=$item.info.blogid title=$item.info.title}">Bình luận</a> ({$item.info.tcmt|number_format:"0":",":"."})</span>
                    </li>
                </ul>
            </div>
        </div>
        
    </div>
    {if $item.stype > 11}
    	<div class="squote{if $item.isread == 0} uread{/if}" id="squote_{$item._id}" onclick="javascript:loadCmt({$item.type},'{$item._id}');" title="Xem nhanh và gửi bình luận">
        	<a href="{vfriend_username userid=$item.posterid viewid=$AppUI->id}">{$item.posterid|ouser}</a> {if $item.stype == 12}gửi bình luận mới{elseif $item.stype == 13}thích nhật ký{elseif $item.stype == 14}thích bình luận của <a href="{vfriend_username userid=$item.quote.userid viewid=$AppUI->id}">{$item.quote.userid|ouser}</a>{/if} <span class="iTime">{$item.postdate|convert_date}</span>
        </div>
    {/if}
{elseif $type == 2}
	<div class="stat">
        <h3>
        	<a href="{vfriend_username userid=$item.ownerid viewid=$AppUI->id}">{$item.ownerid|ouser}</a>
            <span class="iTime">{$item.postdate|convert_date}</span>
       	</h3>
    </div>
    <div class="content bMargin10">
        {if $item.stype == 21}
            <ul class="image">   
                {foreach item=sitem key=si from=$item.info}
                    {if $si==0} 
                        <li class="firstChild">                        	
                            {image userid=$sitem.userid path=$sitem.path small=1 type=2 class="border160NB" id=$sitem.albumid title=$sitem.name|escape attr=$sitem.imageid}
                        </li>
                    {else}
                        <li{if $si > 3} class="hasMg"{/if}>                        	
                            {image userid=$sitem.userid path=$sitem.path small=1 type=2 class="border80NB" id=$sitem.albumid title=$sitem.name|escape attr=$sitem.imageid}
                        </li>
                    {/if}
                {/foreach}
            </ul>
        {else}
            {image userid=$item.info.userid path=$item.info.path type=2 class="border400" id=$item.info.albumid title=$item.info.name|escape attr=$item.info.imageid}
            <div class="cstat">
                <ul>
                    <li>
                        <span class="beLike"><a href="javascript:;" onclick="javascript:like({$item.srcid},{$item.type},'{$item._id}');">Thích</a> (<span id="beh_like_{$item._id}">{$item.info.like|number_format:"0":",":"."}</span>)</span>
                    </li>
                    <li>
                        <span class="beCmt"><a href="{fullhouse_photo_detail userid=$item.ownerid id=$item.srcid name=$item.info.name|escape}?imageid={$item.srcid}">Bình luận</a> ({$item.info.cmt|number_format:"0":",":"."})</span>
                    </li>
                </ul>
            </div>
        {/if}
    </div>
    {if $item.stype > 21}
        <div class="squote{if $item.isread == 0} uread{/if}" id="squote_{$item._id}" onclick="javascript:loadCmt({$item.type},'{$item._id}');" title="Xem nhanh và gửi bình luận">
         <a href="{vfriend_username userid=$item.posterid viewid=$AppUI->id}">{$item.posterid|ouser}</a> {if $item.stype == 22}gửi bình luận mới{elseif $item.stype == 23}thích ảnh{elseif $item.stype == 24}tag <a href="{vfriend_username userid=$item.quote.userid viewid=$AppUI->id}">{$item.quote.userid|ouser}</a> vào ảnh{/if}<span class="iTime">{$item.postdate|convert_date}</span>
        </div>
   	{else}
    	<div class="squote{if $item.isread == 0} uread{/if}">
    		Đăng ảnh mới vào album <a href="{fullhouse_album userid=$item.ownerid id=$item.srcid name=$item.info.0.name}" title="{$item.info.0.name|escape}">{$item.info.0.name|escape|str_wordwrap}...</a><span class="iTime">{$item.postdate|convert_date}</span>
        </div>
    {/if}
{elseif $type == 3 && ($item.stype > 31 || ($item.stype == 31 && $item.info.userid != $item.info.posterid && $item.info.userid == $AppUI->id))}
	<div class="stat">
    	<h3>
       		{if $item.info.userid == $item.info.posterid}
            	<a href="{vfriend_username userid=$item.info.posterid viewid=$AppUI->id}" class="lFloat">{$item.info.posterid|ouser}</a>
            {else}
            	{if $AppUI->id == $item.info.userid}
            		<a href="{vfriend_username userid=$item.info.posterid viewid=$AppUI->id}" class="lFloat">{$item.info.posterid|ouser}</a> <div class="gray lFloat normal" style="font-size:12px;width:auto;">&nbsp;nhắn với tôi
                {else}                	
                	<div class="gray lFloat normal" style="font-size:12px;width:auto;">Bạn nhắn với&nbsp;</div>
                	<a href="{vfriend_username userid=$item.info.userid viewid=$AppUI->id}" class="lFloat">{$item.info.userid|ouser}</a>
                    
                {/if}
            {/if}
            <span class="iTime">{$item.info.postdate|convert_date}</span>
        </h3>  
    </div>
    <div class="content">
    	{$item.info.content|str_emoticon}
        <div class="cstat">
            <ul>
                <li>
                    <span class="beLike"><a href="javascript:;" onclick="javascript:like({$item.srcid},{$item.type},'{$item._id}');">Thích</a> (<span id="beh_like_{$item._id}">{$item.info.tlike|number_format:"0":",":"."}</span>)</span>
                </li>
                <li>
                    <span class="beCmt"><a href="{fullhouse_ublast username=$item.ownerid|ouser:"username" hex=$item.ownerid|ouser:"hex" id=$item.srcid}">Bình luận</a> ({$item.info.tcmt|number_format:"0":",":"."})</span>
                </li>
            </ul>
        </div>
    </div>
    {if $item.stype > 31}
        <div class="squote{if $item.isread == 0} uread{/if}" id="squote_{$item._id}" onclick="javascript:loadCmt({$item.type},'{$item._id}');" title="Xem nhanh và gửi bình luận">
        	<a href="{vfriend_username userid=$item.posterid viewid=$AppUI->id}">{$item.posterid|ouser}</a> {if $item.stype == 32}gửi bình luận mới{elseif $item.stype == 33}thích tâm sự{elseif $item.stype == 34}thích bình luận của <a href="{vfriend_username userid=$item.quote.userid viewid=$AppUI->id}">{$item.quote.userid|ouser}</a>{/if}
            <span class="iTime">{$item.postdate|convert_date}</span>
        </div>    
    {/if}
{elseif $type==4}
	<div class="stat">
        <h3>
        	<a href="{vfriend_username userid=$item.ownerid viewid=$AppUI->id}">{$item.ownerid|ouser}</a>
            <span class="iTime">{$item.info.postdate|convert_date}</span>    
      	</h3>   
    </div>
    <div class="content">
        <h5><span class="prefix">Offline</span> - <a href="{link_offline_detail id=$item.info.offlineid title=$item.info.title}">{$item.info.title}</a></h5>
        <div class="short">
            {$item.info.short}
        </div>
        <div class="cstat">
            <ul>
            	{*
                <li>
                    <span class="beLike"><a href="javascript:;" onclick="javascript:like({$item.srcid},{$item.type},'{$item._id}');">Thích</a> (<span id="beh_like_{$item._id}">{$item.info.tlike|number_format:"0":",":"."}</span>)</span>
                </li>
                *}
                <li>
                    <span class="beCmt"><a href="{link_offline_detail id=$item.info.offlineid title=$item.info.title}">Bình luận</a> ({$item.info.tcmt|number_format:"0":",":"."})</span>
                </li>
            </ul>
        </div>
    </div>
    {if $item.stype > 41}
    	<div class="squote{if $item.isread == 0} uread{/if}" id="squote_{$item._id}" onclick="javascript:loadCmt({$item.type},'{$item._id}');" title="Xem nhanh và gửi bình luận">
        	<a href="{vfriend_username userid=$item.posterid viewid=$AppUI->id}">{$item.posterid|ouser}</a> {if $item.stype == 42}gửi bình luận mới{/if} <span class="iTime">{$item.postdate|convert_date}</span>
        </div>
    {/if}
{elseif $type==5}
	<div class="stat">
        <h3>
        	<a href="{vfriend_username userid=$item.ownerid viewid=$AppUI->id}">{$item.ownerid|ouser}</a>
            <span class="iTime">{$item.info.postdate|convert_date}</span>    
      	</h3>   
    </div>
    <div class="content">
        <h5><span class="prefix">Điểm tin</span> - <a href="{link_news newsid=$item.info.newid title=$item.info.title}">{$item.info.title}</a></h5>
        <div class="short">
            {if $item.info.image != ""}
            	{image path=$item.info.image type=5 small=1 class="border160NB rMargin10 lFloat" alt=$item.info.title|escape id=$item.info.newid title=$item.info.title|escape}
            {/if}
            {$item.info.short}
        </div>
        <div class="cstat">
            <ul>
                <li>
                    <span class="beLike"><a href="javascript:;" onclick="javascript:like({$item.srcid},{$item.type},'{$item._id}');">Thích</a> (<span id="beh_like_{$item._id}">{$item.info.tlike|number_format:"0":",":"."}</span>)</span>
                </li>
                <li>
                    <span class="beCmt"><a href="{link_news newsid=$item.info.newid title=$item.info.title}">Bình luận</a> ({$item.info.tcmt|number_format:"0":",":"."})</span>
                </li>
            </ul>
        </div>
    </div>
    {if $item.stype > 51}
    	<div class="squote{if $item.isread == 0} uread{/if}" id="squote_{$item._id}" onclick="javascript:loadCmt({$item.type},'{$item._id}');" title="Xem nhanh và gửi bình luận">
        	<a href="{vfriend_username userid=$item.posterid viewid=$AppUI->id}">{$item.posterid|ouser}</a> {if $item.stype == 52}gửi bình luận mới{elseif $item.stype == 53}thích nhật ký{elseif $item.stype == 54}thích bình luận của <a href="{vfriend_username userid=$item.quote.userid viewid=$AppUI->id}">{$item.quote.userid|ouser}</a>{/if} <span class="iTime">{$item.postdate|convert_date}</span>
        </div>
    {/if}
{elseif $item.type == 6}
	<div class="stat">
        <h3>
        	<a href="{vfriend_username userid=$item.ownerid viewid=$AppUI->id}">{$item.ownerid|ouser}</a>
            <span class="iTime">{$item.info.postdate|convert_date}</span>    
      	</h3>   
    </div>
    <div class="content">
        <h5><span class="prefix">Giới thiệu</span> - <a href="{link_place placeid=$item.info.placeid title=$item.info.name}">{$item.info.name}</a></h5>
        <div class="short">
        	<p>Địa chỉ: {$item.info.addr}, {$item.info.district_name}, {$item.info.province_name}</p>            
            {if $item.info.image != ""}
            	{image path=$item.info.image type=7 class="border400" alt=$item.info.name|escape id=$item.info.placeid title=$item.info.title|escape}
            {/if}            
        </div>
        <div class="cstat">
            <ul>
                <li>
                    <span class="beLike"><a href="javascript:;" onclick="javascript:like({$item.srcid},{$item.type},'{$item._id}');">Thích</a> (<span id="beh_like_{$item._id}">{$item.info.tlike|number_format:"0":",":"."}</span>)</span>
                </li>
                <li>
                    <span class="beCmt"><a href="{link_place placeid=$item.info.placeid title=$item.info.name}">Đánh giá</a> ({$item.info.tcmt|number_format:"0":",":"."})</span>
                </li>
            </ul>
        </div>
    </div>
    {if $item.stype > 61}
    	<div class="squote{if $item.isread == 0} uread{/if}" id="squote_{$item._id}" onclick="javascript:loadCmt({$item.type},'{$item._id}');" title="Xem nhanh đánh giá">
        	<a href="{vfriend_username userid=$item.posterid viewid=$AppUI->id}">{$item.posterid|ouser}</a> {if $item.stype == 62}đánh giá địa điểm Ăn chơi{elseif $item.stype == 63}thích địa điểm Ăn chơi{elseif $item.stype == 64}thích đánh giá của <a href="{vfriend_username userid=$item.quote.userid viewid=$AppUI->id}">{$item.quote.userid|ouser}</a>{/if} <span class="iTime">{$item.postdate|convert_date}</span>
        </div>
    {/if}
{/if}